Support relative path for local images.

Loading image cause NullPointerException when passed relative path to image.