fixed wrong background color for preview when toggling scale or transparency