Allow local assets

This accepts absolute paths or file: urls when adding assets.
Also removed several calls to get image and resolution that is not used in current code.

I recommend any of that functionality to be re-added if/when needed.