Yes. Closing PHP tags increases the chance for hidden whitespace and other plain text characters making it's way into the output, which is hazardous if emitting image data to the stream.