Sinatra API for nicEdit.js Image Upload (Embed in Rails)