drawing Rectangle/Oval generalized