Refactor checksum
Handle extra-paremeter within checksum calculations
Refactor the image size storage
Remove unused parameter