added caption to image viewer