Yii extension based on our photo wall script.