prototype to generate a bitmap from a coordinate list