Added code for picture viewer.