Add a `loaded` class to the container on img load