Fixed incorrect use of undefined _path to get mime_type