ENH add from_image method
Merge pull request #4 from hayd/from_image

ENH add from_image method