1. A method comprising: determining a background layer; determining a foreground layer having an image, the image being presented over the background layer; calculating a perimeter of the image; and processing, via a processor, the image based the perimeter and according to a relative occlusion between the image and the background layer.