Updating the preview images after swapping the variables and methods colours