Get random image method works