improved color handling for patches