Updated grapher code to fix a crash with photo channels