in decoding: only append ph to list for valid pixel addresses