Added image loading code for local files

Local file image loading code.