public function getImageDataUri($initials, $identifier, $size = 64, $hexaColor = null) { return sprintf('data:image/png;base64,%s', base64_encode($this->getImageData($initials, $identifier, $size, $hexaColor))); }