implement get image by path