Fix looping for smooth cyclical animations
Use source size of animation to determine scale factor (as this is what the frame inputted would have expected)