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