Can anyone explain why the first code snippet works on my windows machine and the second one doesn\'t on my raspberry pi 4? It successfully uploads an image from a random folder