Update rddt_pimg.py

Simplifying the url extension logic (not best, but maybe better).