Detect animated format using mimeType instead of file path
This allows to extend the functionality to non-local files and avoids a warning on such files (QFSFileEngine::open: No file name specified)