Flags restore_state and restore_events added to measure_response
Updated imagen submodule reference