changed new-old images index api to return all if asked for friends images