updating sample image