Simple Image Scraping using Yii Framework and Curl