Calculate checksums for imported images

The checksum algorithm has been changed from SHA-1 to Adler32
(with the possibility of further extension). The new faster algo
calculates values, that are then stored in the Pixels table.
Changes have been implemented both client- and server-side.
Add missing reset() call