Try capturing Visual Studio on a clean VM with master image and make sure it activates correctly in the master image.
This has helped to overcome the license issue with VS 2012 when assigning AppStack.
Did not check with 2013 version and not sure if the license mechanism has changed in it.