A generic next-generation Java library for image processing