to help us be more specific. Post here the code you think makes this problem.
this problem (could/might) handle with error reporting=OFF configuration, buffer redirecting (ob_start++++ ) , ect.
Save the image to the file system or test by direct link to catch utf8 BOM characters...