Updated the Image generator to Rails 4.