integrated add image
integrated delete
added view updating
added error handling