Adding support for upside down orientation

Adding support for upside down orientation.

In reference to Issue #263.