public function getContents() { list(, $imageContents) = explode(';', $this->getData()); list(, $imageContents) = explode(',', $imageContents); return base64_decode($imageContents); }