Optimize and comment array access bugfix.
Merge branch 'materials/image_viewer' of github.com:hpicgs/cgsee into materials/image_viewer