Fix filter write order wrt RGBA residuals