take photo from camera and create new image with socket.io post