https://github.com/bitmakerlabs/photogur_rails_4/wiki/Tutorial