Improved memory management by spawning threads when new images are opened, old worker is destroyed.  Also added an option where image data is sent once on the thread, allowing pixels to be easily manipulated.