Overriding the hash code getter to generate a hash code based on the image source URL. This is used to check if a photo is already present in the list.
@override int get hashCode => imgSrc.hashCode;