$target_path is 'avatars/' . $id . '.' . $ext
Check it here https://github.com/VitSalis/endofcodes/blob/master/models/image.php#L49