upgrade image and data