add image function to README