fix promise get images resolver