Delete dependecy of finfo and mime functions