Replace image.load function with check for image size using setTimout.