Allow overriding maximum image resolution on the command line.

This allows us to easily create smaller bundles for testing.

Change-Id: Ia9f657ad885bc54118d2bd9f5aa78be60520489e