optimized load logo function (thnx to andersro)