Full implementation of coordinate system

Only annoyance is the rendering of the rectangles when triggered by
motion events over them in the image. But I doubt I can solve this since
it seems to be related to the expose-event.