fixed the scaling of the ImagePyramid