How to capture images with graphicoverlay effects on it? (like snapchat)

I am working on an app like snapchat, I am done with applying filters on it. Now I have to capture picture with applied filter but when I take picture, it is only capturing the camera preview, not filters on it? How to achieve this?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum