Fixed tv_dencoise import
Ensure array index is int