Picture algorithm working on desktop okay