fixing paperclip bug to validate attachment content type in pin.rb