Add hash to Pictures model and check duplicated images