Implemented loading animation when waiting for images to load on gallery and front pages