fixed a bug where minAreaRect c++ function was pointing at BoundingRect function, added BitwiseNot for easy image invertion and added scale arg to putText