Read mimetype from images