Retrieval of trademark images by means of size functions