app: port the mask shrink and grow operations from u8 to float