Correcting previous commit to make sure that footprint is inside of extent of generated image.