UPDATE
just use my example that's right below... so....
echo '<td><img src="data:image/jpeg;base64,'.base64_encode($value).'" alt="Image" />';
You can drag and drop that directly into your code. I don't know how to make it any easier than that. Please click the checkmark to the left of this answer. And click the Up Arrow as well. Thanks