Added background color and fixed psd flattening