Tourists jailed after 'taking a selfie' with bears