Added sample window to the ImageViewer.

Added an ImageStats node to the image viewer so that the user can Shift-LeftMouseDrag a sample area within the image and view it's statistics.

When a sample box is visible the user can drag colours from the swatches into the terminal.