Fixed BufferedImage constructor