Added export for jpegJs
Fixed up accessor and debug image looks good
Fixed up code, turns out threshold is good enough =3