Allow enforce(Min|Max)Dimensions to be changed

Make sure that the flag to enforce limited dimensions is changeable.
This will be used in MW when the image type changes to thumbnail
(which requires a limit).

Change-Id: I362c7c378c5ccd7a83495b03e4429c9b93c1e9ee
Merge "Allow enforce(Min|Max)Dimensions to be changed"