Integrated pixel remapper with pblocks