Added a cacheDirectory property to PhoenixWindow...
This directory is passed off to the CachedImage class, and is used in place of manually constructing an application engine on every image. It's also supposed to fix a memory leak.