fixed bounding box error and texture creation