Cropping image using RESTful webservices in Codeigniter