Dimensions made available for landscape and portrait
Fixed hardcoded value
Fixed obsolete null check