Some crop implementation. Also fixed issues inside NDK code, now can save to svg file