Fixed the 'image follow input' example and tidied up the code. Made it stop when it reaches the pointer.