Fixed a bug with getFrame returning frames of different size