I'm not the best to explain shaders.. ideally the shader would run two passes i think or you would combine two separate shaders into one - but that's too complicated for me
Have you tried just doing the first shader on the image, then adding image to a surface and applying the second to the surface? I'm not sure if that would give the same effect, though.