added simple flask server and renamed take_picture