ImageViewer: correct grouping, allow retrieving of layers and thumbnails for each image, some cleanup.
Add ImageViewer view to view imported images