Readjusted rectangle rendering to contain it within the object, as #drawRect drew it outside the components bounds