Fixed native library checking, fixed preview sending for gif documents