update image function for 24.4
removed warning
Merge pull request #14 from kidd/emacs-24.4

Emacs 24.4 friendly