Add mask function for image class
Merge pull request #1030 from dreamsxin/image_class

Add mask function for image class