Added ability to handle color images to Gaussian Weighted L2 norm version