Making the app more robust. Fixing img loading