GBufferedImage bug fixes