Fixed the thumbnail shell so that it actually creates images. Still need to manage the memory usage to stop it throwing a fatal for exhausted memory