restructure endpoint
image attribution, fix test setup