improve preinstall_image() function