public function editMetadata($imageIdentifier, array $metadata) {
        return $this->getCommand('EditMetadata', array(
            'user' => $this->getUser(),
            'imageIdentifier' => $imageIdentifier,
            'metadata' => json_encode($metadata),
        ))->execute();
    }