replaced own getMime with finfo
replaced deprecated methods