add function to get image