Added flip image to PNG writer