image.php: replace file_get_contents() with a fread/print loop