Repackage images for dev env

Can we repackage images which are part of K3s install. If yes, where can we get the dockerfile for the images in the tar file.