Updated the CRUD operation using mongoose with image upload