fixes error where thumbnail size is not found in array