use buffer directly rather than base64 encoded image.
Merge branch 'optimise_memory_usage' of github.com:winsonwq/viff into optimise_memory_usage