Added constructo taking a File directly