Select images on mousedown using Rangy

Removes _selectedImage.
A test for image selection, instead of the test for `_selectedImage`.