Made drawRect more flexible - specify center coords or min and max points.