Adding image & sorting heading hierarchy