memory leak fixed; each set of images in its own vector