Second attempt to make ipads render shadows correctly