Added remove observer for illegal selection
Previously when an illegal node selection was processed the selected image was set to NULL, but the corresponding observer was not removed.
Added a new function, which removes all observers and sets the members to NULL.