refactor deleting old images when updating proof