simple modification to resize the image better, when a footer is used

It's not perfect. The image is not correct centered.