Fixed issue that image is concatenated at wrong offset.