Created function to get random image