Support load image from local only.

Sometimes we like to load image only from local not network to reduce data transfer.