Add a verbose flag, some associated debugging, and fix length calculation for tweeting images.