modularized pch, lwd, and cex in image construction script