Man in park toilet jailed on peeping tom charges