protected function extractDimension(Image $image) { return getimagesizefromstring($image->getContent()); }