[rails] shrineのDataUriモジュールを使って、HTML Canvasの内容を保存する https://hai3.net/blog/rails-shrine-save-html-canvas/