Add edit function for image details