Helpers to resolve mouse clicks on graph image