Region of interest class implemented. Basically a rectangle with the ability to return the average of the pixel values.