fix error to do with png's