Added ext/image merging functions