image import api, flesh out rest api more