Merge pull request #47 from ozamasa/master

Add image count setting
Add doc histories
Just change file permission
Doc should not be destroied if it has prev_edition
Change event image display