update in images function added deletion of image in server