wow, using opencv from jruby and it only took a few crazy hacks