Use proper opacity & blend modes when flattening the image.