Implemented Image#threshold_inv and Image.zeros

This makes it easier to create images for masks.