Make image src property can load image from local file.