Added img load error handler mock