Fix strange use of pointers in screenshot code.