add working code: interface with base64 post + write image to fs