Workaround for leak of openGL textures when Images are deleted without an active GL context.