Reduces amount of used memory during PNG creation.