Added max_pixels option
Merge pull request #25