API for image gallery server