protected function getFormatChoices($context = 'prestacms')
    {
        $formatChoices = array();

        $formats = $this->getMediaPool()->getFormatNamesByContext($context);

        foreach ($formats as $code => $format) {
            $formatChoices[$code] = $this->trans('media.format.' . $code);
        }

        return $formatChoices;
    }