Bug on the conversion of jpg files to png