This doesn't reused the space from the previous image. The space between image N and image N+1 should be the max of the spacing around N and N+1.