Removing code which made imagePyramid tests failing