```php
// make the directory to store the pic: if(!is_dir(Yii::getPathOfAlias('webroot').'/images/ADD YOUR PATH HERE!/'.$model->name)) {
mkdir(Yii::getPathOfAlias('webroot').'/images/ADD YOUR PATH HERE!/'.$model->name))
chmod(Yii::getPathOfAlias('webroot').'/images/ADD YOUR PATH HERE!/'.$model->name)), 0755);
// the default implementation makes it under 777 permission, which you could possibly change recursively before deployment, but here's less of a headache in case you don't
}