Fixed bug where resizing didn't work if original gif had the same height and width