added require 'Paperclip' to application.rb, removed it from pin.rb