Merge pull request #4 from pepijnve/master

Avoid creating a new JVM instance for each image