added image selection to add/edit page