img_date: Also check ext in IsDuplicate.
cmd: Simplify import statements.