You're trying to load 52 frames starting from frame 1. The frame count starts at 0, therefore your code is trying to read 52 images, ignoring the first one (so, 53 in total).
Your image is not large enough to contain 53 images of the specified size.
Change the 1 to a 0. That should sort it.
Your image is not large enough to contain 53 images of the specified size.
Change the 1 to a 0. That should sort it.