added output folder to image path, kludged in ip address to server output