Limit images dimensions.