changes to edit page and image upload fixes