wasn't there a judge somewhere that gave people a choice between a "creative" punishment and a traditional one? I found at least one example at http://abcnews.go.com/US/ohio-judge-unusual-punishments-peop...
Unsure what the legal justification is though