minor changes to script so i dont save every image ever generated