Fixed image uploading problems with uppercase extensions.