Can't compile image after upgrading to OS X Yosemite

I have MacTex installed in my mac. It works fine before I upgrading to OS X Yosemite. After the upgrade, I can still compile the textual part, but the image part gives me this error: http://pastebi...