Replacing PSD with flat images