a computer method for filling a selected region in a target image includes determining an attribute of a seed pixel within the selected region , forming a mask image of the region based on identifying pixels that have the attribute , and filling the selected region based on the mask image .