Fixed IOException from a PNG file