change image type.