So it generates link like http://myserver/yii/myapp/index.php?r=candidate/displaySavedImage&id=1
Where Candidate is current model.
To show thesaved image we can write an action:
in Controller:
```php
/**
* Displays the preview of the photoOpens the dialog in browser to open/save the image.
*/
public function actionDisplaySavedImage()
{
$model=$this->loadModel($_GET['id']);