more versatile thumbnail getter