detail image endpoint desing