Why aren't pictures in imessages showing up on my macbook messages?

I had the same problem. It turned out that I had an empty file at /Users/name/Library/Messages/Attachments, even though that's supposed to be a folder where all of your images get stored. Once I deleted the blank file, photos started working. There's a related discussion here: https://discussions.apple.com/thread/6601288.