set up simple server to handle image processing using flask