Find and add correct mimetype for images