in reply to Returning jpg works, png NOT
What do your server error logs say? It's not impossible for there to be a silent failure, but it's unlikely. You just need to look for it.
Dave