Niall Horan, Zayn Malik, Louis Tomlinson, Harry Styles and Liam Payne pose for a photo with music mogul Simon Cowell