determines the orientation and smallest "box" size for a device
adding additional changes from metadata updates