promiseImgSample and promiseImageDataSample is added