Do not download duplicates or file:// URL images

Change-Id: Icc92c2a2150a03523ef154a1d6f0a9f0cd2648b4