update image type