Added getWidth/getHeight utility methods.