SwiftFileBackend: improve mime type detection

Use the same logic that is used when storing image data in database (BAC-1109)

@moliwikia / @Wikia/platform-team