Local images loading support

This is my fix to enable local images in the image loader.