Got rid of mime-types gem dependency.