update image sample