editor.js: center figure
editor.js: check figure size and file type
Merge pull request #113 from stoewer/master

Editor figure file checks

selfmerge