add lisence term.
add support for loading local image.