Only trigger homepage CSS animation when image is completely loaded