1. A method of filtering a facial image, comprising: rendering a first image on a display of an electronic device within a boundary of the display; detecting the facial image within the first image; rendering an image boundary around the facial image on the display; calculating frame coordinates of the image relative to the boundary of the display; storing the frame coordinates in a memory of the electronic device; in response to transformation of the first image, the transformation comprising at least one of a cropping and moving of the first image, retrieving the frame coordinates from the memory and applying the transformation to the frame coordinates to obtain updated frame coordinates relative to the boundary of the display, wherein the updated frame coordinates match a transformed facial image within the transformed first image without detecting the facial image in the transformed first image; determining if the updated frame coordinates of the image boundary are disposed within the boundary of the display; in response to determining that the updated frame coordinates are disposed at least partially within the boundary of the display applying a filter effect to the transformed facial image to provide a filtered facial image in response to determining that the updated frame coordinates are disposed at least partially within the boundary of the display, and rendering the filtered facial image on the display of the electronic device, wherein if the updated frame coordinates are disposed only partially within the boundary of the display only a portion of the filtered facial image is rendered on the display, wherein the portion of the filtered facial image is disposed within the boundary of the display; and disabling the filter effect in response to determining that the updated frame coordinates are disposed outside of the boundary of the display.