Fixed picture adding problem, I don't know why it worked before, some variable name changed.