image server written as rack middle ware