Update to use IMG.naturalWidth, IMG.naturalHeight

It will use those methods whenever they are avaiable.