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; generating an image boundary around the facial image, the image boundary defined by frame coordinates 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 updating the frame coordinates to obtain updated frame coordinates that match a transformed facial image within the transformed first image; determining if the updated frame coordinates of the image boundary are disposed within the boundary of the display; applying a filter effect to the transformed facial image if the updated frame coordinates are disposed within the boundary of the display; and disabling the filter effect if the updated frame coordinates are disposed outside of the boundary of the display, wherein the frame coordinates are updated dependent upon the transformation and without detecting the facial image in the transformed first image.