Added an editor and image upload function