adding displayWidth and height and corresponding tests #106