Firmware to mask dead pixel