Liam Payne is sorry for allowing a picture of himself standing on a dangerously high ledge to circulate the internet, calling his action's "stupid".