nightly image builder code