modify image type