Add version numbers to gemfile. Fixed bug in image.js:q