added debugging code

because the resize method is processed two times for every image call.
Cropping calculations works correct!