fixing onLoad event for cached images and logo
fixing minor bugs