offset x and y by position of rect on screen