Select images on mousedown using Rangy

Removes _selectedImage.
Tests for linking/unlinking images.