I\'m not looking for solution, I\'m looking for a better solution or just a different way to do this by using some other kind of list comprehension or something else.
The first implementation is the most pythonic way, and seems to be the fastest, too.
Using 1000 for each, width and height, I register execution-times of