Closes #28,#37  : added thumbnail argument to PhotoListener

Also, removing photo from caches when new photo is written