see commit notes

refactor of app.js to further divide library functions from page functions.
added ability to remove images