add scroll image function