improvements to cube images and filename handling