[PD] declare -path and msgfile, pix_image and others