Fixing .update() problem when saving images