Crop and upload image extension for Yii framework