Photoshop Calculations to Create a Mask for Hair