public function images($productID)
 {
     $this->_product = $this->get('product.loader')->getByID($productID);
     $images = [];
     $types = $this->get('product.image.types');
     foreach ($this->_product->getImages() as $image) {
         $label = $types->get($image->type);
         if (!array_key_exists($label, $images)) {
             $images[$label] = [];
         }
         $images[$label][] = $image;
     }
     return $this->render('::product:edit-images', array('locale' => $this->get('locale'), 'product' => $this->_product, 'form' => $this->_getImageForm(), 'images' => $images));
 }
 public function getImages($type = 'default', array $options = null)
 {
     $this->_load('images');
     return parent::getImages($type, $options);
 }