improved logo file handling