main/partimage: move from testing