in reply to perl twitter api
Given the method name update_profile_image and the variable name $nt, my guess is Net::Twitter, which seems to use the REST API documented at https://dev.twitter.com/docs/api. The function for updating the profile image and especially the image constraints are documented at https://dev.twitter.com/docs/api/1/post/account/update_profile_image.
Alexander