Correctly update cursor when viewer is created or removed.

You can check it out differences here:
http://pazguille.github.io/intense-images/

Thanks!