Support for multiple orientations

Potential fix for #8

@vermontlawyer Can you take a look at this and let me know if it fixes your problem?  If so, I'll get it merged in.