public function getLastModified($user, $imageIdentifier)
{
try {
$model = $this->getClient()->headObject(['Bucket' => $this->params['bucket'], 'Key' => $this->getImagePath($user, $imageIdentifier)]);
} catch (NoSuchKeyException $e) {
throw new StorageException('File not found', 404);
}
return new DateTime($model->get('LastModified'), new DateTimeZone('UTC'));
}