I don't understand why this would be deprecated. DockerImageName seems to provide more value to the framework than the user. In most cases, it's just an unnecessary step for the user.
https://github.com/testcontainers/testcontainers-java/blob/master/core/src/main/java/org/testcontainers/containers/GenericContainer.java#L240