Code to perform image saving / updating on startup