Generalized the checksum algorithm.
Added support to directly fetch Ubuntu images.