Generating scaled and cropped gifs