math.ceil pixelformat depth
stripe out the alpha channel when not converting