Viewer: apply correct colorspace depending on input image bit depth