Fixed color depth conversion in redrec