protected function viewImage($file, $controller)
    {
        $path = $file->getRealPath();

        $data = array(
            'file' => $file,
            'src' => $controller->image(gplcart_file_relative($path)),
            'exif' => function_exists('exif_read_data') ? exif_read_data($path) : array()
        );

        return $controller->render('file_manager|readers/image', $data);
    }