Use ol.extent.getWidth and ol.extent.getHeight
Merge pull request #1995 from fredj/cleanup

Use ol.extent.getWidth and ol.extent.getHeight