made backgroundstack, virtualstack and other classes. now plugin does not attempt to read all frames into memory, uses virtualstack feature