Detect mime type in gaufrette image loader