added local image support