added draft pie image building code
revised calls for revised proc.