fix @http nil issue when calling get method in Connection. when cropping uploaded image, it will use this get method. refactor a little as well.