Refactor findPic
Refactor truncatejpg
Refactor slidwallpaper