After you have created the element using the above code. You can use
image.height
image.width
The reason, you get 0 is because when you execute the statement, it wouldnt have loaded. You have to wait till the image is loaded and execute the statement. You can use document.ready
but the problem is that it might not be 100% accurate there.
refer: Official way to ask jQuery wait for all images to load before executing something
You can use window.load (using jquery), but that is something which is risky as per the above article.
For the best possible solution, what you can use a lib https://github.com/desandro/imagesloaded.
You can use @Raman's technique, but the problem is that you have to attach eventlistener to per image which could get clumpsy.
If you are using imagesloaded, you can watch a container for the images to be loaded and execute the code accordingly.
Jsfiddle: https://jsfiddle.net/52q0juq6/1/