Fixing problem where we try to find frames on not loaded image.