fixed un-initiated $json in Factory; optimized package_image in Packager