Maybe the better question to ask is: `if len(image_point) != 0` It stops giving deprecation warnings that way. I really like your work thank you for sharing!