Triangulates a bitmap image