Added support for specifying device rotation (for rotating device screen shots)