modify image format