add image format convert method