refactor of main app function to further divide library function and page function, added ability to remove image from library
Merge pull request #2 from buheryfi/feature

see commit notes