Fix NullPointerException and add some test cases


Fixes #76 
ImageUtils is actually just a bunch of static methods, so doesn't actually need a constructor. Perhaps make it a public static class ImageUtils?