objectdetect added
convert given bufferedimages to mat
saves images as jpg