Migrated UIImageEffects to unified API

- Cast nint to int
- Changed float variable to nfloat