I noticed the error too when I ran it a few times but couldn’t originally find where it was located. I actually found that it came from the ‘noisy’ function and not the JPG Degrade (cause the JPG Degrade function doesn’t even use arrays). I may find another way to implement it in the future, but in the mean time, I just bypassed the function which should hopefully eliminate that error. Hope that helps!