Encode and mask data inside pixel data