Modified DNS2D.php, function getBarcodePNGPath() didn't take into account store_path

I couldn't save .png files for 2d barcodes. The function getBarcodePNGPath() didn't take into account store_path in config file. With this modification it works, am I missing something? I'm a beginner.