Replace indexed color with rgb for ipad compatibility