fixed img loading issues