add height and width to resource as well