Working with tabs (or when the image is hidden)

Modded to work when the image che be temporarily hidden (i.e. when working with jquery ui tabs). The sensor was always visible in its absolute position even when the image was hidden (switch tab).