one more style fix.
showImages: Rework code, remove duplicated code