Sets the value of the picture sample