Added image analyzing functionality (getRectangles).
Added toScalar method in HSV.