1) Add/remove class more robustly 2) Remove class before copy 3) Update position of handles if image position changes (e.g. editor is scrolled)