This answer is from @furas' comment to the question.
Set the address in javascript to /static/PERDNI/09401576.jpg
.
{% static ... %}
is Python Django's syntax, so javascript doesn't understand that.
So, we need to set the address directly to the file in javascript.