set up the new item admin page

fix code to allow adding a new image on the admin site.