Use image-animated-p instead of image-multi-frame-p for Emacs < 24.4