I also recommend http://blog.matthen.com/ (tons of math gifs with source code) and http://visualizingmath.tumblr.com/ (lots of gifs and other images along these lines).
Dynamical Systems and Fractals (http://www.amazon.co.uk/Dynamical-Systems-Fractals-Computer-...)
Mathographics (http://www.amazon.co.uk/Mathographics-Robert-Dixon/dp/048626...)
Computers Pattern Chaos & Beauty (http://www.amazon.co.uk/Computers-Pattern-Beauty-Clifford-Pi...)
Fractals Images of Chaos (http://www.amazon.co.uk/Fractals-Images-Chaos-Penguin-Scienc...)
I suggest these because they all contain some kind of code.
http://asymptote.sourceforge.net/gallery/animations/
http://www.piprime.fr/developpeur/asymptote/animation-asy_as...
http://www.marris.org/asymptote/animations/index.html
http://i.imgur.com/gUm1T5S.gif
http://i.imgur.com/xR5uqle.gif
http://i.imgur.com/SVvuRII.gif
[1]: http://www.pheelicks.com/2013/10/intro-to-images-in-go-part-...
http://dvdp.tumblr.com/ artsy