Switched annotations() function to accept File objects instead of file idsfg