update config.php func to use inParameter, update local URL to bgImgPattern