made image generator rely on same context