Random triangularisation of image in php