Fixed drawDashedLine using global coordinates.
Added cache for bond coordinates.