adding loading animation. fixing image loading weirdness.