replaced static configuration of emulated display size to dynamic