http://beecoder.org/en/javascript/get-the-dimensions-of-an-image-in-javascript
Get the Dimensions of an Image, JavaScript