Got images loading/saving into cws file

Few other changes with support for plugins