Fix the blackimage bug when using an identity effect