faster DrawRectangle function