moved animation width and height from config to create