Deskshare module

The only difference between UpsideDown and rightside up is the positioning calculation. You can move the resize code to two methods to reduce duplication. One method for portrait calculations and one for landscape calculations.