Change shuffle image function