PHP Yii Image Class