Port of Kohana Image library to Yii (fork)