Fixed bug when saving .png files..