Fixed case sensitive extensions

I forgot to put ToLower in the GetExtension function. For example this
made it so you couldn't load images that had the extension ".JPG" but
you could load ".jpg".