Made png buffer length to 1Kb instead of 16Mb