Refactor UIImage radial fill mode algorithm.