Fixed drawing issue at pivot points

There would be a black spot in the corner at pivot points.  The fix was to
extend the rectangle just enough to reach the x or y value of the pivot
point