change image extension to lower case