fixed imageLoaded and logger