Il problema persiste anche con il tuo suggerimento...
Ho fatto la prova a creare un file test.php con il seguente codice e nient'altro:
<?php
Header("Content-Type: image/jpeg");
?>
Lancio questo file e mi ritorna sempre lo stesso errore:
The image “http://localhost/test.php” cannot be displayed, because it contains errors.
E' normale???