A man preparing pastry dishes wearing a hat .