Nightly image optimization