Changed the function that verifies the integrity of the pictures. Fixes
#54