fixing imagehandler