force image extensions to be lowercase