fixes #28. This general hack may cause problems if we want to start dragging points, but it stopped image dragging in firefox