save build image at end