further image saving stuff