fix loading images