create swap image and change tmp location