added more functions for image

Ignore-this: 37edb229200da545616e2a8b69fad2b0

darcs-hash:20140125180057-c21fe-2382b6834d3c6660845b28dad99c8c3d60b0a1f0