Port of nanojpeg to Go