Hotfix to gaussian pyramid

- The previous code was producing masks with incorrect shape, this hotfix solves the problem.
Merge pull request #272 from ja310/hotfix_gaussian_pyramid

Hotfix to gaussian pyramid