draft image endpoint implementation