func getAssetIndex(withUrl: String) -> Int {
        var index = 0
        for asset in assets {
            if asset.url == withUrl {
                return index