Switching from GIF to PNG and converting image.getWidth and Height to EMU.