Detect mime type in flysystem image loader