allowed drawing inside of rect