document the image function