added license
clean up and add rest-client dependency
create_image() implementation