Algorithm change

Made an algorithmic change for one picture - and I like the idea of
doing a seperate algorithm for each picture.
Need to restructure the code so that's easier.
1

1