change image type in image table