Added Attachment class and fixed api.Images.create