Copy, but not fork of https://github.com/Tomino2112/html5ImagePreview