Added PNG merging functions.