add prefrences,that can count images;