fixing typo in pin.rb to make image upload feature work