find external image file first