relative coordinates in the paint method