changig image format due to image errors