optional classname was set too early on ImageContain