Можете ли да опитате това,
echo '<img src="data:image/png;base64,' . base64_encode($row['image']) . '" />';
Вашият код:
while($row = mysql_fetch_array($query))
{
echo '<img src="data:image/png;base64,' . base64_encode($row['image']) . '" />';
}