ImageViewer pixel inspector

Adds support for dragging pixels from the viewer to the script editor.
Adds a UI element that reports the pixel value and the position of the cursor.

This is part of the requirement necessary for implementing issue #337.