Yep, that was it! Guess I didn't know what trim did, that seemed to have fixed it. For some reason I thought trim had something to do with the animation length and not the image size. Apologies, haha.