add check if there are no images tosprite