server-side code for the sizeify service