Move constrainAspectRatio property to Options for easier testability