ImageScience-compatible image processing for JRuby