collection of sample code to tutorial of image mask