Man jailed for licking tub of ice cream and putting it back