changing extention of image