Axis() in combination with images()

The following code from the docs works nicely:

using CairoMakie
using FileIO
img = load(assetpath("cow.png"))
f = Figure()
image(f[1, 1], img)

However, when I want to define an Axis and put that into image() it fails:

using CairoMakie
using FileIO
img = load(assetpath("cow.png"))
f = Figure()
ax = Axis(f[1,1])
image(ax, img)

The error message reads:

`Makie.convert_arguments` for the plot type Image{Tuple{Axis, Matrix{ColorTypes.RGBA{FixedPointNumbers.N0f8}}}} and its conversion trait ContinuousSurface() was unsuccessful.

image! because you’re mutating an Axis, the other one uses image because it creates an Axis as well. I know it also mutates a Figure so it’s not 100% consistent but that’s how it was defined

D’oh :man_facepalming: . Yes, of course, thanks!