Flattening buttons and updating all images