I think `JpegGenerator` should be a static class, we shouldn't create an instance of this class.