Using a combination of vgg19 and lbfgs I have found the script to end after only 8 iterations. In addition, when using a different combination (like vgg16 & lbfgs or vgg19 & adam) it seems to optimize up to the proper maximum iterations, but does not save the final output image. I'm not sure if I'm doing anything wrong or this is a bug.