sample for image type conversion