L'errore qual'è?

Forse perchè prima chiami l'immagine com $img e poi con $picture ?