Fixed IE8 bug in image plugin - parentNode is undefined

In IE8 the "done" function in the "getImageSize" function was firing before it was attached to the dom.  This was throwing a js error when trying to access the parentNode.removeChild method.  Reordering the events to be attached after the image is appended to the dom fixes this problem, since the image will now be in the dom when the done method is triggered.