add edit post function and add image folder