Forgot to have ShapePrimitive delete the image/texture data.
More commenting of files.