update image name in db