Add MAX_RETRIEVAL constant to specify maximum number of thumbnails
Handle case where not thumbnail is read in getThumbnail*Set() methods

If byteArray is empty, the thumbnail field of the corresponding element is
filled with an empty array.