diff --git a/twitter.lib.php b/twitter.lib.php
index a37a972..6b68a73 100644
--- a/twitter.lib.php
+++ b/twitter.lib.php
@@ -1402,12 +1402,20 @@ class TwitterUser {
     $this->favourites_count = $values['favourites_count'];
     $this->protected = $values['protected'];
     $this->profile_image_url = $values['profile_image_url'];
+    // Use the HTTPS version when available.
+    if (!empty($values['profile_image_url_https'])) {
+      $this->profile_image_url = $values['profile_image_url_https'];
+    }
     $this->profile_background_color = $values['profile_background_color'];
     $this->profile_text_color = $values['profile_text_color'];
     $this->profile_link_color = $values['profile_link_color'];
     $this->profile_sidebar_fill_color = $values['profile_sidebar_fill_color'];
     $this->profile_sidebar_border_color = $values['profile_sidebar_border_color'];
     $this->profile_background_image_url = $values['profile_background_image_url'];
+    // Use the HTTPS version when available.
+    if (!empty($values['profile_background_image_url_https'])) {
+      $this->profile_background_image_url = $values['profile_background_image_url_https'];
+    }
     $this->profile_background_tile = $values['profile_background_tile'];
     $this->verified = $values['verified'];
     $this->created_at = $values['created_at'];
