Refactor API and add height/width to debug resp