You could do it with less than 1 byte (even assuming color). For example: if the first bit is zero, assume it is a black 1x1 pixel, otherwise, interpret the byte as the width of the image, etcetera ;)
My point is that the actual size doesn’t matter. You can take any fixed k+O(z) and for a raster image and z_raster >= z_vector holds. You can arbitrarily get k down to zero e.g by techniques mentioned here and you end up with the big O term being all that matters