Only use rails_12factor in production

This fixes the strange logging issues during tests
Upgrade Paperclip to v4.2.0