Fixed NPE's. Made static methods non-static :) (in ImageUtil and ImageGenerator)