move height and width to inside of context struct