public function getImage($user, $imageIdentifier)
{
try {
$model = $this->getClient()->getObject(['Bucket' => $this->params['bucket'], 'Key' => $this->getImagePath($user, $imageIdentifier)]);
} catch (NoSuchKeyException $e) {
throw new StorageException('File not found', 404);
}
return (string) $model->get('Body');
}