resizing tries again later if the image isnt loaded
expanded description and added example