Pixels are matched to the current palette. Raster layers travel as an MCOimg v3 body inside the v4 document and cost far more bytes than shapes; encoding them takes a few seconds.