init

using mimetype library to guess the mimetype from file path