Using bitmap data to create sprite primatives