Added functionality in generate_scanlines for quantized apodization levels