Limit image size to 1024*1024 for b2g.
Merge pull request #3456 from brendandahl/cap-image-size

Limit image size to 1024*1024 for b2g.