how about copying the SimpleImage implementation and tweaking it?
Copy code
@Composable
fun SimpleImage(
image: Image,
tint: Color? = null
) {
// TODO b/132071873: WithDensity should be able to use the DSL syntax
WithDensity(block = {
Container(width = image.width.toDp(), height = image.height.toDp()) {
DrawImage(image, tint)
}
})
}