Requesting the correct image format direcly makes the request faster, as PNG is much smaller. This also removes the external dependency on the Pillow library.