    events = utils.read_data('event_output/sim_events.txt')
    #events = utils.read_data('data/slider_depth/events.txt')

    for event in events:
        if event[3] == 1:
            image[int(event[1]), int(event[2])] -= threshold
        else:
            image[int(event[1]), int(event[2])] += threshold
            
    #add events to first image 
    image = np.exp(image).astype('uint8')
    cv2.imwrite('Images/final_frame_delta_mod.png', cv2.cvtColor(image,cv2.COLOR_GRAY2RGB))