Image gallery with sinatra, mongoid and dragonfly