Use:

pan_create("yourpic.pcx",1);

First is the pic the second value the layer. Look up the manual also!