Remove extra call to mime type
Fix crash on openCV haar cascade file missing
Comment unused functions