Mexican hat function to consider width.