added mainImagepath to saveDraft