Fix showImages bug

As mentioned in a comment in #647, thanks!