sampling in photo example