Anybody got a function which returns the pictures of the youtube account??

Browse the Youtube developers guide

try something similar to this:

function getUserProfilePicture($userName) 
{
  $yt = new Zend_Gdata_YouTube();
  $yt->setMajorProtocolVersion(2);

  $userProfileEntry = $yt->getUserProfile($userName);

  return $userProfileEntry->getThumbnail()->getUrl();
} 

Or have you mean pictures from the submitted videos? That's also recorded within the designers guide.