CRUD with problems to delete function and obtainImg function.