Fix loading on IE8

It seems we need to set the image's attribute before calling `.load()`, in order to make it work on IE8.

Reference: http://stackoverflow.com/questions/4921712/load-event-with-jquery-fails-in-ie-8