In imageServlet changed to lower case the file name when getting mimeType.