added bgImgPath option for automatically setting page background image