We can share more code between the effects. The imageBuffer creation and drawRect calculation to Filtereffect.
*** This bug has been marked as a duplicate of 26479 ***