re-creating the pixtr app, moving from sinatra to rails