The apache imaging library was used in a previous attempt to leverage the memory leak issue ( #100 ). However this library has only provided a snapshot version so far and has been replaced with imagescalr.
The previous commit also exhibited some issues to manipulate some jpg images. This issue should be evaluated using the current version.