Add model, update the algorithm used to load image