fixed border issues by using offsetLeft/Top
rounding errors in using offsetX
pseudocode test for rounding