fix subframe event bug

cannot use imageobject in subframe event