can select and show images
cleaned up older code