SwiftFileBackend: improve mime type detection

Use the same logic that is used when storing image data in database (BAC-1109)
Merge pull request #2256 from Wikia/bac-1009-mime-magic-improved

SwiftFileBackend: improve mime type detection