get correct content-size before img-create