fixed imagehandler error