cleanup before image update

cleaning up files and such before the image update