Make the asset helper easier to use

When using the asset library helper, it expects a file object for the existing file. Yet files are usually saved as file IDs. 

Making the helper adapt to accept an object or ID for the existing file saves anyone using the library from having to worry about the difference.
Merge pull request #1659 from JohntheFish/patch-6

Make the asset helper easier to use