refactor _e_eom_output_start_mirror and _e_eom_output_get_layer functions