pattern expansion properly handled in image-preview script
cleanup