Change assert to check picture hash codes