add support for image_patterns to specify animations