Group undo framework and algorithms in real-time collaborative image editing systems