write json for picture viewer on a complete page picture download