Not sure about the Picture ref and how it is updated

But, now the program runs pretty fast