[Fixes #181] Get canvas offset properly for events

Added `getPosition` util to get offset of elements