added contours to image
added tuning parameters