Move declaration of 'pict' closer to where it is used and initialize it.