function get(ImageFile $file) { $path = $file->getPath(); if (empty($this->_images_info[$path])) { $this->_images_info[$path] = getimagesize($path); } return $this->_images_info[$path]; }