Try rendering the painfx as one pass using the software render and then composite it on top of the mray image.