rebuild data and image