Convert RandomImageGenerator to use the new execution framework