Fix for CR2 files which could not be downloaded.
Some ugly test code for keeping track of weight.