How to download Image with Polygon?

Hi, I am trying to download an image with a polygon on it. I want to mark all pixels inside the polygon with one constant (say 1) and those outside with another (say 0). Is this possible to be done with your Python library? I have the coordinates of the polygon.
I know I can crop the image to the polygon’s shape, but that is not what I want. I want the whole image with the specified mask.

No, this is not possible at the moment.