added get_pixel_masks version 1