add getimage method