changes to image proxy and data cache

small change to Image proxy, it no longer writes a local file, it loads the image data into memory and writes it back out from memory. This should be quicker and less prone to errors.

Removed the background data loader thread as it is no longer needed, the data is either being read from the cache or loaded and saved, no need to do this is the thread as the thread was just being waited on anyway.