Adds logic to adapt the animation to any size

Adds logic to adapt the animation to be displayed in the size the control is configured to and not just in the static size of (55, 55) that was originally created, this adds more flexibility and reusability if the control.