Rescued missing function from original picture-pal library.