draft image endpoint api design