jQuery: Get image dimensions before loading. From http://stackoverflow.com/questions/6124409/image-size-before-is-in-dom