DrawRectangle modification