editor.js: center figure
editor.js: check figure size and file type