cleanup terminal errors and fixed changing images