Added doctests for get_image and get_profile methods