fix invalid pixel/x,y positions with jointCursors

Fixes #58

This prevents errors, but may not be the best behaviour, but that can be
fixed later