fixed loading of an external image