Added openCV image processing code