unify public/private images endpoints