Drawing points based on an array