Fixed "couldn't recognize data in image file" bug.