build method
Get final image as PNG
Implementation
Uint8List build() {
final finalImage = copyCrop(
utilImage,
x: 0,
y: 0,
width: paperSize.width,
height: runningHeight, // Adjust height as needed
);
return encodePng(finalImage);
}