Depends on how your webserver is set up. If php tries to parse it, it's not the fault of php; it's the webserver that thinks that you image is a php file and sends it to the php parser. Check the extension associations in your webserver config, and make sure all your images are name *.png