close #48 : Refactor getRandomPic script by creating a Class.