update image extension