fixing image file extentions