1. A method comprising: detecting a highest contrast value in an image; determining one or more high contrast areas in the image, wherein the one or more high contrast areas are defined by adjacent portions of the image each having a contrast value greater than or equal to a threshold contrast value based on the highest contrast value; determining one or more edges of the determined one or more high contrast areas, wherein portions of the image adjacent to at least one of the one or more edges and outside of the one or more high contrast areas each has a contrast value below the threshold contrast value and wherein the portions of the image adjacent to the determined one of the one or more edges and outside of the determined one or more high contrast areas include a front focus area determined to be in front of at least one of the one or more high contrast areas and a back focus area determined to be behind the at least one of the one or more high contrast areas; and applying a visual effect to the portions of the image adjacent to the determined one or more edges and outside of the determined one or more high contrast areas such that the visual effect is not applied to the one or more edges and not applied to the one or more high contrast areas.