Add complete/readystate check for images