3
Yes that's an idea but I'm not sure that it will run with all browsers.
The problem is that sometimes you can change the picture with another on and with different dimensions and if the pictures dimensions are stored with the article, then you see the picture with the dimensions of the "old" picture.