Making image scaling consistent across platforms