Fix bug in metadata endpoint. Check for image ownership and notify if not owner or id not found when updating metadata.