first version of API, returns image name and id