revising the format of the extension of the image