kernel_store_obstacle_ids: passing edge marks image as an argument to kernel.