Creates Tempfile in binmode so binary files might be saved correctly