Raise exception if image not preloaded.