modified the image extension to lower case