Fixed reference to getMimeTypeFromExtension which was being treated as a...

... globally available function.