ImageLoader clear() must be called synchronously or paintGL can croak