generates barcode without temporary file