fix scaling for retina
fix ratio test to check ratio-scale separately