I was passing a UIImageView where an UIImage was enough. Fix it.
Also remove 2 warnings.