add multi-image function for different pages