Yii 1.1 framework upload and crop image