added support for multiple orientations, retina, and multiple devices.