convert image show to use structs