fixed classes restoring for some plugins
fixed resimage changing