move to binary, as binary-strict is no longer supported and it's also a shame to load the whole JPG in memory. added strictness annotations to the type, not sure whether it's enough or not