adding api to retreive image