unpack and repack bootimg