added comments and cleaned the code for imageview implementation using OpenCV