fixed numpy array conversion (with clipping to 255)